.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-selector button {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s;
}

.mode-selector button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input,
.modal-content textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #667eea;
}

.file-upload {
    padding: 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.file-upload input {
    border: none;
    padding: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: bold;
}